QT       += core gui
QT       += network

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++11

# The following define makes your compiler emit warnings if you use
# any Qt feature that has been marked deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS

# You can also make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    src/interface/application/application.cpp \
    src/interface/chat/chat.cpp \
    src/interface/chat/chattext.cpp \
    src/interface/chat/rightchatclass.cpp \
    src/interface/contacts/contacts.cpp \
    src/interface/contacts/friendlistbutton.cpp \
    src/interface/contacts/itembutton.cpp \
    src/interface/contacts/userinfo.cpp \
    src/main.cpp \
    src/interface/main/mainwindow.cpp \
    src/interface/common/myalert.cpp \
    src/interface/login/mylogin.cpp \
    src/interface/login/myloginicon.cpp \
    src/interface/login/myloginqrcode.cpp \
    src/interface/common/mymask.cpp \
    src/interface/profile/profile.cpp \
    src/models/basemodel.cpp \
    src/models/usermodel.cpp \
    src/network/clientnet.cpp \
    src/route/requeststruct.cpp \
    src/route/responsestruct.cpp \
    src/route/route.cpp

HEADERS += \
    src/interface/application/application.h \
    src/interface/chat/chat.h \
    src/interface/chat/chattext.h \
    src/interface/chat/rightchatclass.h \
    src/interface/contacts/contacts.h \
    src/interface/contacts/friendlistbutton.h \
    src/interface/contacts/itembutton.h \
    src/interface/contacts/userinfo.h \
    src/interface/main/mainwindow.h \
    src/interface/common/myalert.h \
    src/interface/login/mylogin.h \
    src/interface/login/myloginicon.h \
    src/interface/login/myloginqrcode.h \
    src/interface/common/mymask.h \
    src/interface/profile/profile.h \
    src/models/basemodel.h \
    src/models/usermodel.h \
    src/network/clientnet.h \
    src/route/requeststruct.h \
    src/route/responsestruct.h \
    src/route/route.h

FORMS += \
    ui/application.ui \
    ui/chat.ui \
    ui/contacts.ui \
    ui/mainwindow.ui \
    ui/myalert.ui \
    ui/mylogin.ui \
    ui/profile.ui

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

RESOURCES += \
    resource.qrc

DISTFILES += \
    source/main/unread.png \
    source/main/unread2.png
